<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>promise</title>
</head>
<body>

</body>
<script>
    let promiseObj = new Promise((resolve,reject) =>{
        resolve(1);
    });
    promiseObj.then(data=>{
        console.log(data);
    }).then(()=>{
        console.log(2);
    })
</script>
</html>